package com.ruoyi.labdanger.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.labdata.domain.LabFlowInstance;

/**
 * 申请采购对象 lab_apply_purchase
 * 
 * @author winner pan
 * @date 2022-03-09
 */
public class LabApplyPurchase extends LabFlowInstance {
	private static final long serialVersionUID = 1L;
	/**
	 * 危化品采购业务类型.
	 */
	private static final String businessTypeOpt = "procurementChemicals";

	public LabApplyPurchase() {
		super.setBusinessTypeOpt(businessTypeOpt);
	}
	
	public static enum applyOwner{
		//学院领导
		academy,
		//老师
		teacher,
		//学生
		student,
	}

	/** 申请状态 */
	@Excel(name = "申请状态")
	private Long applyStatusOpt;
	
	private String applyOwnerOpt;
	/**学院采购ID*/
	private Long purchaseId;
	
	public Long getPurchaseId() {
		return purchaseId;
	}

	public void setPurchaseId(Long purchaseId) {
		this.purchaseId = purchaseId;
	}

	public String getApplyOwnerOpt() {
		return applyOwnerOpt;
	}

	public void setApplyOwnerOpt(String applyOwnerOpt) {
		this.applyOwnerOpt = applyOwnerOpt;
	}

	public void setApplyStatusOpt(Long applyStatusOpt) {
		this.applyStatusOpt = applyStatusOpt;
	}

	public Long getApplyStatusOpt() {
		return applyStatusOpt;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("instanceId", this.getInstanceId())
				.append("createTime", getCreateTime()).append("createBy", getCreateBy())
				.append("applyStatusOpt", getApplyStatusOpt()).toString();
	}
}
